//
//  SINATecManagerQuerScoreCourseItemTableViewCell.m
//  sinashebao
//
//  Created by  androidlongs on 2018/1/8.
//  Copyright © 2018年  androidlongs. All rights reserved.
//

#import "SINATecManagerQuerScoreCourseItemTableViewCell.h"


@interface SINATecManagerQuerScoreCourseItemTableViewCell()
@property (weak, nonatomic) IBOutlet UILabel *contentLabel;

@end

@implementation SINATecManagerQuerScoreCourseItemTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
   
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


-(void)setModel:(SINATecCourseModel *)model{
    _model = model;
    
    if (self.itemClickBlock) {
        [[SINAUiviewClickLiserner alloc]viewClickFunction:self.contentView andWithBlick:^(UIView *view) {
            self.itemClickBlock(self.model);
        }];
    }
    
    self.contentLabel.text=model.courseTitle;
}

@end
